<?
//Überprüfen ob der Abruf über die Hauptseite erfolgt
if(!defined('InStern')) exit;

include("conf/build.conf.php");
include("conf/forsch.conf.php");
include("conf/schiffe.conf.php");

echo "
<table>
  <tr>
    <th>Gebäude</th>
    <th>Punkte</th>
  </tr>";
  foreach($config_bau[haus] AS $value)
  {
    echo "
      <tr>";
      if(gettype($value[name]=="array")) echo  "<td>".implode(", ",$value[name])."</td>";
      else echo "<td>$value[name]</td>";
      echo "
        <td>$value[punkte]</td>
      </tr>";
  }
  echo "
</table>

<table>
  <tr>
    <th>Schiff</th>
    <th>Punkte</th>
  </tr>";
  foreach($config_schiff_punkte AS $key=>$value)
    echo "
      <tr>
        <td>".implode(", ",$config_schiff_name[$key])."</td>
        <td>$value</td>
      </tr>";
  echo "
</table>";
  
  